package com.ruoyi.bigScreen;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.zzw.TDatasourceManage;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.service.ITDatasourceManageService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 【请填写功能名称】Controller
 * 
 * @author xbx
 * @date 2023-10-20
 */
@RestController
@RequestMapping("/screen/dataSource")
@Api(tags = "数据资源管理")
public class ScreenTDatasourceManageController extends BaseController
{
    @Autowired
    private ITDatasourceManageService tDatasourceManageService;


    @GetMapping(value = "/{cIndicatorId}")
    @ApiOperation("通过指标ID查询数据资源")
    public AjaxResult getInfoByInId(@PathVariable("cIndicatorId") Long cIndicatorId)
    {
        return success(tDatasourceManageService.selectTDatasourceManageByCIndicatorId(cIndicatorId));
    }
}
